home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / console / svgatext.3 / svgatext / SVGATextMode-1.3 / XFREE / common_hw / xf86_HWlib.h < prev   
Encoding:
C/C++ Source or Header  |  1996-02-14  |  5.6 KB  |  308 lines

  1. /* $XConsortium: xf86_HWlib.h,v 1.5 95/01/23 15:34:11 kaleb Exp $ */
  2. /* $XFree86: xc/programs/Xserver/hw/xfree86/common_hw/xf86_HWlib.h,v 3.14 1995/07/01 10:49:08 dawes Exp $ */
  3. /*
  4.  * Copyright 1990, 1991 by Thomas Roell, Dinkelscherben, Germany
  5.  * Copyright 1993 by David Wexelblat <dwex@goblin.org>
  6.  * Copyright 1993 by Kevin Martin <martin@cs.unc.edu>
  7.  * Copyright 1993 by Rickard Faith <faith@cs.unc.edu>
  8.  * Copyright 1993 by Scott Laird <lair@midway.uchicago.edu>
  9.  * Copyright 1993 by Tiago Gons <tiago@comosjn.hobby.nl>
  10.  * Copyright 1993 by Jon Tombs <jon@robots.ox.ac.uk>
  11.  *
  12.  * Permission to use, copy, modify, distribute, and sell this software and its
  13.  * documentation for any purpose is hereby granted without fee, provided that
  14.  * the above copyright notice appear in all copies and that both that
  15.  * copyright notice and this permission notice appear in supporting
  16.  * documentation, and that the names of the above listed copyright holders 
  17.  * not be used in advertising or publicity pertaining to distribution of 
  18.  * the software without specific, written prior permission.  The above listed
  19.  * copyright holders make no representations about the suitability of this 
  20.  * software for any purpose.  It is provided "as is" without express or 
  21.  * implied warranty.
  22.  *
  23.  * THE ABOVE LISTED COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD 
  24.  * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 
  25.  * AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDERS BE 
  26.  * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
  27.  * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER 
  28.  * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 
  29.  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  30.  *
  31.  */
  32.  
  33.  
  34. #ifndef _XF86_HWLIB_H
  35. #define _XF86_HWLIB_H
  36.  
  37. /***************************************************************************/
  38. /* Macro definitions                                                       */
  39. /***************************************************************************/
  40.  
  41. /*
  42.  * These are used to tell the clock select functions to save/restore
  43.  * registers they use.
  44.  */
  45. #define CLK_REG_SAVE    -1
  46. #define CLK_REG_RESTORE    -2
  47.  
  48. /***************************************************************************/
  49. /* Prototypes                                                              */
  50. /***************************************************************************/
  51.  
  52. #include <X11/Xfuncproto.h>
  53.  
  54. _XFUNCPROTOBEGIN
  55.  
  56. /* ICD2061Aalt.c */
  57. extern void AltICD2061SetClock(
  58. #if NeedFunctionPrototypes
  59.     long,
  60.     int
  61. #endif
  62. );
  63.  
  64. extern void Et4000AltICD2061SetClock(
  65. #if NeedFunctionPrototypes
  66.     long,
  67.     int
  68. #endif
  69. );
  70.  
  71. /* ICD2061Acal.c */
  72. extern long ICD2061ACalcClock(
  73. #if NeedFunctionPrototypes
  74.     long,
  75.     int
  76. #endif
  77. );
  78.  
  79. /* ICD2061Aset.c */
  80. extern void ICD2061ASetClock(
  81. #if NeedFunctionPrototypes
  82.     long
  83. #endif
  84. );
  85.  
  86. /*  SC11412.c */
  87. extern Bool SC11412SetClock(
  88. #if NeedFunctionPrototypes
  89.      long 
  90. #endif
  91. );
  92.  
  93. /*  ICS2595.c */
  94. extern Bool ICS2595SetClock(
  95. #if NeedFunctionPrototypes
  96.      long
  97. #endif
  98. );
  99.  
  100.  
  101. /* xf86_ClkPr.c */
  102. extern void xf86GetClocks(
  103. #if NeedFunctionPrototypes
  104.     int,
  105.     Bool (*)(), 
  106.     void (*)(),
  107.     void (*)(),
  108.     int,
  109.     int,
  110.     int,
  111.     int,
  112.     ScrnInfoRec *
  113. #endif
  114. );
  115.  
  116. /* ATTDac.c */
  117. extern void xf86dactopel(
  118. #if NeedFunctionPrototypes
  119.     void
  120. #endif
  121. );
  122.  
  123. extern unsigned char xf86dactocomm(
  124. #if NeedFunctionPrototypes
  125.     void
  126. #endif
  127. );
  128.  
  129. extern unsigned char xf86getdaccomm(
  130. #if NeedFunctionPrototypes
  131.     void
  132. #endif
  133. );
  134.  
  135. extern void xf86setdaccomm(
  136. #if NeedFunctionPrototypes
  137.     unsigned char
  138. #endif
  139. );
  140.  
  141. extern void xf86setdaccommbit(
  142. #if NeedFunctionPrototypes
  143.     unsigned char
  144. #endif
  145. );
  146.  
  147. extern void xf86clrdaccommbit(
  148. #if NeedFunctionPrototypes
  149.     unsigned char
  150. #endif
  151. );
  152.  
  153. /* S3gendac.c */
  154. extern int S3gendacSetClock(
  155. #if NeedFunctionPrototypes
  156.     long,
  157.     int
  158. #endif
  159. );
  160.  
  161. extern int ET4000gendacSetClock( 
  162. #if NeedFunctionPrototypes
  163.         long,
  164.         int
  165. #endif
  166. );     
  167.  
  168.  
  169. extern int ET4000gendacSetpixmuxClock( 
  170. #if NeedFunctionPrototypes
  171.         long,
  172.         int
  173. #endif
  174. );     
  175.  
  176.  
  177. extern int ICS5342SetClock(
  178. #if NeedFunctionPrototypes
  179.     long,
  180.     int
  181. #endif
  182. );
  183.  
  184. extern int S3TrioSetClock(
  185. #if NeedFunctionPrototypes
  186.     long,
  187.     int
  188. #endif
  189. );
  190.  
  191. /* Ti3025clk.c */
  192. extern void Ti3025SetClock(
  193. #if NeedFunctionPrototypes
  194.     long,
  195.     int,
  196.         void (*)()
  197. #endif
  198. );
  199.  
  200. /* Ti3026clk.c */
  201. extern void Ti3026SetClock(
  202. #if NeedFunctionPrototypes
  203.     long,
  204.     int,
  205.     int
  206. #endif
  207. );
  208.  
  209. /* Ch8391clk.c */
  210. extern void Chrontel8391SetClock(
  211. #if NeedFunctionPrototypes
  212.     long,
  213.     int
  214. #endif
  215. );
  216.  
  217. /* STG1703clk.c */
  218. extern void STG1703SetClock(
  219. #if NeedFunctionPrototypes
  220.     long,
  221.     int
  222. #endif
  223. );
  224.  
  225. /* BUSmemcpy.s */
  226. extern void BusToMem(
  227. #if NeedFunctionPrototypes
  228.     void *,
  229.     void *,
  230.     int
  231. #endif
  232. );
  233.  
  234. extern void MemToBus(
  235. #if NeedFunctionPrototypes
  236.     void *,
  237.     void *,
  238.     int
  239. #endif
  240. );
  241.  
  242. /* SlowBcopy.s */
  243. extern void SlowBcopy(
  244. #if NeedFunctionPrototypes
  245.     char *,
  246.     char *,
  247.     int
  248. #endif
  249. );
  250.  
  251. /* IODelay.s */
  252. extern void GlennsIODelay(
  253. #if NeedFunctionPrototypes
  254.     void
  255. #endif
  256. );
  257.  
  258. /* IBMRGB.c */
  259. extern void IBMRGBSetClock(
  260. #if NeedFunctionPrototypes
  261.     long,
  262.     int,
  263.     long,
  264.     long
  265. #endif
  266. );
  267. extern unsigned char s3InIBMRGBIndReg(
  268. #if NeedFunctionPrototypes
  269.     unsigned char
  270. #endif
  271. );
  272. extern void s3OutIBMRGBIndReg(
  273. #if NeedFunctionPrototypes
  274.     unsigned char,
  275.     unsigned char,
  276.     unsigned char
  277. #endif
  278. );
  279. extern int  s3IBMRGB_Probe(
  280. #if NeedFunctionPrototypes
  281.     void
  282. #endif
  283. );
  284. extern void s3IBMRGB_Init(
  285. #if NeedFunctionPrototypes
  286.     void
  287. #endif
  288. );
  289.  
  290. /*
  291.  * Gendac clock calculator: needed for those that want to get
  292.  * clock params without actually programming them (e.g. W32 driver)
  293.  */
  294. extern int commonCalcClock(
  295. #if NeedFunctionPrototypes
  296.    long,
  297.    int,
  298.    long, long,
  299.    unsigned char *,
  300.    unsigned char *
  301. #endif
  302. );
  303.  
  304.  
  305. _XFUNCPROTOEND
  306.  
  307. #endif /* _XF86_HWLIB_H */
  308.